#ifndef ENGINE_H
#define ENGINE_H

#include <SFML/Graphics.hpp>
#include <map>
#include <string>
using namespace sf;
using namespace std;

class Engine{
private:
    RenderWindow* window;
    map<string, Texture> textures;

public:
    Engine(RenderWindow* wnd);
    void drawSprite(string path, int x, int y);
    void drawSprite(Sprite *s, int x, int y);
    void clearWindow();
    void renderWindow();
    void closeWindow();
    bool isWindowOpen();
    bool isMouseClickInRect(int x, int y, int width, int height);
    bool isKeyPressed(char key);
};
#endif // ENGINE_H
